MAKE BITMAP FROM MEMBLOCK
This command will make a bitmap from a memblock.
MAKE BITMAP FROM MEMBLOCK Bitmap Number,Memblock Number
Bitmap Number
Integer
The memblock number
Memblock Number
Integer
The bitmap number
This command does not return a value.
The specified values must be integer values and the source resource must exist or the command will fail. The memblock stores the data as described in the respective memblock construction command.
load bitmap "face.bmp",1
MemblockNumber=1
MAKE MEMBLOCK FROM BITMAP MemblockNumber, 1
delete bitmap 1
MAKE BITMAP FROM MEMBLOCK 1, MemblockNumber
rem Display data
cls
print "MEMBLOCK EXPRESSION DATA"
print
if MEMBLOCK EXIST(MemblockNumber)=1
print "memblock:";MemblockNumber
print "exist:";MEMBLOCK EXIST(MemblockNumber)
print "ptr:";GET MEMBLOCK PTR(MemblockNumber)
print "size:";GET MEMBLOCK SIZE(MemblockNumber)
endif
rem Delete memblocks
if MEMBLOCK EXIST(MemblockNumber)=1 then DELETE MEMBLOCK MemblockNumber
do
loop
end
MEMBLOCKS Commands Menu
Index